﻿@model XPressify.Models.RelationshipLoveEditModel

@{
    ViewBag.Title = "Relationship choose partner";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2 style="color:#222">Relationship choose partner</h2>


@Html.HiddenFor(model => model.PreviousRelationshipId)

@using (Html.BeginForm())
{

<table>
    <tr>
        <th width="50px">Name</th>
        <th></th>
        <th>Add relationship</th>
    </tr>
    @{   var index = 0;
         foreach (var friends in Model.Friends)
         {
                <tr>
                        <td>
                            <a href='@Url.Action("ProfileView", "Profile", new { id = friends.Id })' class="nobtn">
                                <img src= "@friends.ProfilePicturePath" alt="Profile picture" title="Profile picture" style="width: 50px;height: 50px;" />
                            </a>
                            
                        </td>
                        <td>
                            @Html.ActionLink(friends.FullName, "ProfileView", "Profile", new { id = friends.Id }, new {@class = "nobtn" }) 
                        </td>
                        <td>@Html.RadioButtonFor(model => model.SelectedId, Model.Friends[index].Id) </td>
                </tr>
                       index++;
         }   
    }
    
</table>
<input type="submit" value="Save" />
}